package com.cd.university.common.enums;

import lombok.Getter;
import org.springframework.http.HttpStatus;

/**
 * 响应的枚举类
 * @author 陈栋
 * @create 2021/10/22 10:55
 */
@Getter
public enum ResponseEnum {

    PROJECT_NOT_EXISTS(HttpStatus.EXPECTATION_FAILED.value(),"该项目不存在，请检查项目的id"),

    FILE_UPDATE_FAILURE(HttpStatus.EXPECTATION_FAILED.value(),"项目文件上传失败"),

    PRIMARY_KEY_NOT_EXISTS(HttpStatus.EXPECTATION_FAILED.value(),"主键id不存在")

    ;


    Integer code;

    String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
